package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.activity.UserActivityConditionData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class UserRelationActivityBussiness {

	public static Map<Long, Map<Integer,List<UserActivityConditionData>>> getUserActivityConditionDataMap(int activityId) {
		return DaoHelper.getUserRelationActivityDaoImpl().getUserActivityConditionDataMap(activityId);
	}

	public static Map<Integer, List<UserActivityConditionData>> getUserActivityConditionDataMap(long userId, int activityId) {
		return DaoHelper.getUserRelationActivityDaoImpl().getUserActivityConditionDataMap(userId, activityId);
	}

	public static List<UserActivityConditionData> getUserActivityConditionDataList(int activityId, long userId, int type){
		return DaoHelper.getUserRelationActivityDaoImpl().getUserActivityConditionDataList(activityId, userId, type);
	}

	public static List<UserActivityConditionData> getUserActivityConditionDataList(int activityId, int type, int rankNum){
		return DaoHelper.getUserRelationActivityDaoImpl().getUserActivityConditionDataList(activityId, type, rankNum);
	}

	public static Map<Long, UserActivityConditionData> getUserActivityConditionDataMap(int activityId, int type){
		return DaoHelper.getUserRelationActivityDaoImpl().getUserActivityConditionDataMap(activityId, type);
	}

	public static boolean addUserActivityConditionData(UserActivityConditionData userActivityConditionData) {
		return DaoHelper.getUserRelationActivityDaoImpl().add(userActivityConditionData);
	}

	public static boolean updateUserActivityConditionData(UserActivityConditionData userActivityConditionData) {
		return DaoHelper.getUserRelationActivityDaoImpl().update(userActivityConditionData);
	}
}
